<?php $this->set('title', 'Presenter Portal'); ?>
<?php $this->set('external_css', array('presenter.css')); ?>
<?php $session->flash();?>
<table cellpadding="0" cellspacing="0" border="0" class="presenterContainer" align="center">
	<tr>
		<td class="presenterLeft">
			<fieldset>
				<legend>Search</legend>
				<div style="padding:10px;">
					<div class="header">Search Surveys</div>
					<!-- Presenter Search -->
					<?php echo $this->element('presenter_search',
									array("controller" => "Surveys", "action" => "index"));?>
				</div>
			</fieldset>
		</td>
		<td style="width:5%">
			&nbsp;
		</td>
		<td class="presenterRight">
			<table cellpadding="0" cellspacing="0" border="0" width="100%">
				<tr>
					<td>
						<fieldset>
							<legend>My Surveys</legend>
							<div style="padding:5px;">
								<?php echo $html->link(($html->image("icons/add.png")." Add New Survey"),
						 			array('controller' => 'surveys', 'action' => 'add'),
									array('escape' => false)); ?>
								<!-- My Surveys -->
								<?php echo $this->element('surveys_list',
											array("surveys_list" => $my_surveys));?>
								<?php echo($html->link('View All', array('controller' => 'surveys', 'action' => 'show_all'))); ?>
							</div>
						</fieldset>
					</td>
				</tr>
				<tr><td style="height:10px;">&nbsp;</td></tr>
				<tr>
					<td>
						<fieldset>
							<legend>Closed Surveys</legend>
							<div style="padding:5px;">
								<!-- Closed Surveys -->
								<?php echo $this->element('surveys_list',
											array("surveys_list" => $closed_surveys));?>
								<?php echo($html->link('View All', array('controller' => 'surveys', 'action' => 'closed_surveys'))); ?>
							</div>
						</fieldset>
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr><td>&nbsp;</td></tr>
</table>
<br /><br />